package com.hsq.ndmall.product.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 商品评价表
 *
 * @author kate-chan
 * @email ccsu_loader@163.com
 * @date 2021-08-11 00:33:11
 */
@Data
@TableName("pms_comment")
public class CommentEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@ApiModelProperty(value = "")
	@TableId
	private Long id;
	/**
	 *
	 */
	@ApiModelProperty(value = "")
	private Long productId;
	/**
	 *
	 */
	@ApiModelProperty(value = "")
	private String memberNickName;
	/**
	 *
	 */
	@ApiModelProperty(value = "")
	private String productName;
	/**
	 * 评价星数：0->5
	 */
	@ApiModelProperty(value = "评价星数：0->5")
	private Integer star;
	/**
	 * 评价的ip
	 */
	@ApiModelProperty(value = "评价的ip")
	private String memberIp;
	/**
	 *
	 */
	@ApiModelProperty(value = "")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date createTime;
	/**
	 *
	 */
	@ApiModelProperty(value = "")
	private Integer showStatus;
	/**
	 * 购买时的商品属性
	 */
	@ApiModelProperty(value = "购买时的商品属性")
	private String productAttribute;
	/**
	 *
	 */
	@ApiModelProperty(value = "")
	private Integer collectCouont;
	/**
	 *
	 */
	@ApiModelProperty(value = "")
	private Integer readCount;
	/**
	 *
	 */
	@ApiModelProperty(value = "")
	private String content;
	/**
	 * 上传图片地址，以逗号隔开
	 */
	@ApiModelProperty(value = "上传图片地址，以逗号隔开")
	private String pics;
	/**
	 * 评论用户头像
	 */
	@ApiModelProperty(value = "评论用户头像")
	private String memberIcon;
	/**
	 *
	 */
	@ApiModelProperty(value = "")
	private Integer replayCount;

}
